﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="smallDeimos.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <script type="text/javascript" src="jquery-1.2.6.min.js" ></script>

    <script type="text/javascript" src="digitialspaghetti.password.min.js" ></script>

    <%--    <script type="text/javascript" language="javascript">
    $().ready(function() {
    $("#pa").psstrength({'debug': true});
    alert($("#TextBox2").text);
    $("#TextBox2").psstrength({'debug': true});
});
</script>
--%><script type="text/javascript" language="javascript">
function Update()
{
var dd1 = document.getElementById('DropDownList1')
var dd2 = document.getElementById('DropDownList2')
var dd3 = document.getElementById('DropDownList3')
var dd4 = document.getElementById('DropDownList4')
var dd5 = document.getElementById('DropDownList5')
var dd6 = document.getElementById('DropDownList6')
var dd7 = document.getElementById('DropDownList7')
var sub = document.getElementById('SUbonus')
var s1 = dd1.options[dd1.selectedIndex].text;
var s2 = dd2.options[dd2.selectedIndex].text;
var s3 = dd3.options[dd3.selectedIndex].text;
var s4 = dd4.options[dd4.selectedIndex].text;
var s5 = dd5.options[dd5.selectedIndex].text;
var s6 = dd6.options[dd6.selectedIndex].text;
var s7 = dd7.options[dd7.selectedIndex].text;
var s8 = 0;
if( sub.checked == true)
{
s8 = 2;
}
var label = document.getElementById('Text1')
var sum = parseInt(s1) +parseInt(s2) + parseInt(s3) + parseInt(s4) + parseInt(s5)+ parseInt(s6) + parseInt(s7) + s8 
label.value  = sum
var btn = document.getElementById('Button1')
if (sum == 0 ) { btn.disabled  = false; } else {btn.disabled = true;}
}
</script>

    <title>Small Deimos - Register</title>
    <link rel="stylesheet" type="text/css" href="SmallDeimos.css" />
    <style type="text/css">
        .style1
        {
            width: 99px;
        }
        .newStyle1
        {
            font-weight: bold;
            color: #FF0000;
        }
        #Text1
        {
            width: 44px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <table>
                        <tr>
                            <td class="style1">
                                Login
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Password
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>

                                
                                <br />
                                <script type="text/javascript">
		$('#TextBox2').pstrength({'debug': true});
                                </script>

                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Email
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <b>Race</b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Defense
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Attack
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList2" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Speed
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList3" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Production
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList4" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Culture
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList5" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Science
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList7" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Growth
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList6" runat="server">
                                    <asp:ListItem>-4</asp:ListItem>
                                    <asp:ListItem>-3</asp:ListItem>
                                    <asp:ListItem>-2</asp:ListItem>
                                    <asp:ListItem>-1</asp:ListItem>
                                    <asp:ListItem Selected="True">0</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="l1" Text="Startup bonus" ToolTip="10 labs, social+2"></asp:Label>
                            </td>
                            <td>
                                <asp:CheckBox ID="SUbonus" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" Width="98px" />
                            </td>
                            <td>
                                <input id="Text1" readonly="readonly" type="text" value="0" title="Sum of race attribs" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label1" runat="server"></asp:Label><asp:LinkButton ID="LinkButton1"
                                    runat="server" PostBackUrl="~/Default.aspx" Visible="False">Start page</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
